package svcmodel

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ GatewayServiceGrpcRuleModel = (*customGatewayServiceGrpcRuleModel)(nil)

type (
	// GatewayServiceGrpcRuleModel is an interface to be customized, add more methods here,
	// and implement the added methods in customGatewayServiceGrpcRuleModel.
	GatewayServiceGrpcRuleModel interface {
		gatewayServiceGrpcRuleModel
	}

	customGatewayServiceGrpcRuleModel struct {
		*defaultGatewayServiceGrpcRuleModel
	}
)

// NewGatewayServiceGrpcRuleModel returns a model for the database table.
func NewGatewayServiceGrpcRuleModel(conn sqlx.SqlConn, c cache.CacheConf) GatewayServiceGrpcRuleModel {
	return &customGatewayServiceGrpcRuleModel{
		defaultGatewayServiceGrpcRuleModel: newGatewayServiceGrpcRuleModel(conn, c),
	}
}
